import request from '@/utils/request'

// 查询受训人信息列表
export function listReceive(query) {
  return request({
    url: '/cld/receive/list',
    method: 'get',
    params: query
  })
}

// 查询受训人信息详细
export function getReceive(trainReceiveId) {
  return request({
    url: '/cld/receive/' + trainReceiveId,
    method: 'get'
  })
}

// 新增受训人信息
export function addReceive(data) {
  return request({
    url: '/cld/receive',
    method: 'post',
    data: data
  })
}

// 修改受训人信息
export function updateReceive(data) {
  return request({
    url: '/cld/receive',
    method: 'put',
    data: data
  })
}

// 删除受训人信息
export function delReceive(trainReceiveId) {
  return request({
    url: '/cld/receive/' + trainReceiveId,
    method: 'delete'
  })
}
